package com.learn.core.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * Description
 *
 * @author zhaohongyu
 * @ClassName LQuestions
 * @date 2021.03.22 09:11
 * @describe 试题表
 */
@TableName("l_questions")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value="LQuestions对象", description="试题表")
public class LQuestions implements Serializable {

    private static final long serialVersionUID = 1L;


    @TableId(value = "questions_id", type = IdType.AUTO)
    private Integer questionsId;

    @ApiModelProperty(value = "知识点")
    @TableField("knowledge")
    private String knowledge;

    @ApiModelProperty(value = "题型")
    @TableField("questions_type")
    private Integer questionsType;

    @TableField(exist = false)
    private String questionsTypeName;

    @ApiModelProperty(value = "所属分类id")
    @TableField("questions_sort_id")
    private Integer questionsSortId;

    @TableField(exist = false)
    private String questionsSortName;

    public String getQuestionsSortName() {
        return questionsSortName;
    }

    public void setQuestionsSortName(String questionsSortName) {
        this.questionsSortName = questionsSortName;
    }

    @ApiModelProperty(value = "试题分数")
    @TableField("questions_fraction")
    private Integer questionsFraction;

    @ApiModelProperty(value = "试题难度")
    @TableField("questions_difficulty")
    private Integer questionsDifficulty;

    @ApiModelProperty(value = "试题内容")
    @TableField("questions_content")
    private String questionsContent;

    @ApiModelProperty(value = "标准答案")
    @TableField("questions_answer")
    private String questionsAnswer;

    @ApiModelProperty(value = "题解")
    @TableField("questions_explain")
    private String questionsExplain;

    @ApiModelProperty(value = "排序")
    @TableField("questions_seq")
    private Integer questionsSeq;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_user")
    private String createUser;

    @TableField("update_time")
    private Date updateTime;

    @TableField("update_user")
    private String updateUser;

    @TableField(exist = false)
    private List<LOption> lOptionList;

    @TableField(exist = false)
    private Integer count;

    @TableField(exist = false)
    private List examineAnswer;

    public List getExamineAnswer() {
        return examineAnswer;
    }

    public void setExamineAnswer(List examineAnswer) {
        this.examineAnswer = examineAnswer;
    }

    public String getQuestionsTypeName() {
        return questionsTypeName;
    }

    public void setQuestionsTypeName(String questionsTypeName) {
        this.questionsTypeName = questionsTypeName;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public List<LOption> getlOptionList() {
        return lOptionList;
    }

    public void setlOptionList(List<LOption> lOptionList) {
        this.lOptionList = lOptionList;
    }

    public Integer getQuestionsId() {
        return questionsId;
    }

    public void setQuestionsId(Integer questionsId) {
        this.questionsId = questionsId;
    }

    public String getKnowledge() {
        return knowledge;
    }

    public void setKnowledge(String knowledge) {
        this.knowledge = knowledge;
    }

    public Integer getQuestionsType() {
        return questionsType;
    }

    public void setQuestionsType(Integer questionsType) {
        this.questionsType = questionsType;
    }

    public Integer getQuestionsSortId() {
        return questionsSortId;
    }

    public void setQuestionsSortId(Integer questionsSortId) {
        this.questionsSortId = questionsSortId;
    }

    public Integer getQuestionsFraction() {
        return questionsFraction;
    }

    public void setQuestionsFraction(Integer questionsFraction) {
        this.questionsFraction = questionsFraction;
    }

    public Integer getQuestionsDifficulty() {
        return questionsDifficulty;
    }

    public void setQuestionsDifficulty(Integer questionsDifficulty) {
        this.questionsDifficulty = questionsDifficulty;
    }

    public String getQuestionsContent() {
        return questionsContent;
    }

    public void setQuestionsContent(String questionsContent) {
        this.questionsContent = questionsContent;
    }

    public String getQuestionsAnswer() {
        return questionsAnswer;
    }

    public void setQuestionsAnswer(String questionsAnswer) {
        this.questionsAnswer = questionsAnswer;
    }

    public String getQuestionsExplain() {
        return questionsExplain;
    }

    public void setQuestionsExplain(String questionsExplain) {
        this.questionsExplain = questionsExplain;
    }

    public Integer getQuestionsSeq() {
        return questionsSeq;
    }

    public void setQuestionsSeq(Integer questionsSeq) {
        this.questionsSeq = questionsSeq;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    @Override
    public String toString() {
        return "LQuestions{" +
                "questionsId=" + questionsId +
                ", knowledge='" + knowledge + '\'' +
                ", questionsType=" + questionsType +
                ", questionsSortId=" + questionsSortId +
                ", questionsFraction=" + questionsFraction +
                ", questionsDifficulty=" + questionsDifficulty +
                ", questionsContent='" + questionsContent + '\'' +
                ", questionsAnswer='" + questionsAnswer + '\'' +
                ", questionsExplain='" + questionsExplain + '\'' +
                ", questionsSeq=" + questionsSeq +
                ", createTime=" + createTime +
                ", createUser='" + createUser + '\'' +
                ", updateTime=" + updateTime +
                ", updateUser='" + updateUser + '\'' +
                '}';
    }
}
